<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns:ccts="urn:un:unece:uncefact:documentation:standard:CoreComponentsTechnicalSpecification:2"
	xmlns:ebforms="http://code.google.com/p/eb-forms"
	exclude-result-prefixes="xsd xsl">
	
	<xsl:variable name="global.doc.transformConfig" select="document( document-uri( / ) )" />
	
	<xsl:variable name="global.doc.schema.root" 
		select="document( /ebforms:transform-config/ebforms:schema/@src )" />
	
	<xsl:variable name="global.doc.annotations"  
		select="document( /ebforms:transform-config/ebforms:annotation/@src )" />
	
	<xsl:variable name="global.browser"
		select="/ebforms:transform-config/ebforms:browser" />
	
	<!--
		The target namespace from the message we are transforming. The instance created should remain
		in this namespace.
	-->

	<xsl:variable name="global.ns.target" 
		select="$global.doc.schema.root/xsd:schema/@targetNamespace" />

	<xsl:variable name="global.instance.message">instance.message</xsl:variable>

	<xsl:variable name="global.schema.root.prefix">rsm</xsl:variable>
</xsl:stylesheet>
